package com.dykj.fireFighting.server.base.dev.mapper;

import com.dykj.fireFighting.api.base.dev.entity.DevHisZc;
import com.dykj.fireFighting.common.core.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 电气火灾报警设备运行记录
 * @Author LIJIANJIE
 * @Date  2021-07-12 15:10:02
 */
public interface DevHisZcMapper extends SuperMapper<DevHisZc> {

    int getElectricNum(@Param("id") String id);

    int getCurrentEleNum(@Param("id") String id);

    int getUpEleNum(@Param("id") String s);

    int getCenterEleNum(@Param("ids") List<String> ids,@Param("beginTime") String beginTime,@Param("endTime") String endTime);

    int getCenterCurrentEle(@Param("ids") List<String> ids);

    int getCenterUpEle(@Param("ids") List<String> ids);

    DevHisZc getElectricLimit(@Param("tableName") String tableName,@Param("relationId") String relationId);

    int getEleByTime(@Param("id") String s,@Param("beginTime") String beginTime,@Param("endTime") String endTime,@Param("tableName") String tableName);

    void updateByIdTable(DevHisZc devHisZc, String tableName);
}
